﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Xiaov.SmartWeb.Application.TJFX.Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../FCF/js/FusionCharts.js" type="text/javascript"></script>
    <script type="text/javascript">
        function col(name) {
            pie(name);
            line(name);
        }
        function pie(name) {
            var pie;
            if (name == "0") {
                pie = "xml/pie0.xml";
            }
            else {
                pie = "xml/pie1.xml";
            }
            var chart = new FusionCharts("../FCF/Pie2D.swf", "ChartId", "450", "260");
            chart.setDataURL(pie);
            chart.render("chartdiv_pie");
        }
        function line(name) {
            var line;
            if (name == "0") {
                line = "xml/line0.xml";
            }
            else {
                line = "xml/line1.xml";
            }
            var chart = new FusionCharts("../FCF/MSLine.swf", "ChartId", "450", "260");
            chart.setDataURL(line);
            chart.render("chartdiv_line");
        }
        function month(name) {
            var line;
            if (name == "0") {
                line = "xml/col_m0.xml";
            }
            else {
                line = "xml/col_m1.xml";
            }
            var chart = new FusionCharts("../FCF/Column2D.swf", "ChartId", "450", "260");
            chart.setDataURL(line);
            chart.render("chartdiv_col_m");
        }
    </script>
</head>
<body scroll=yes>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    <div id="chartdiv_col" align="center">
                        FusionCharts.
                    </div>
                    <script type="text/javascript">
                        var chart = new FusionCharts("../FCF/MSColumn2D.swf", "ChartId", "450", "260");
                        chart.setDataURL("xml/col.xml");
                        chart.render("chartdiv_col");
                    </script>
                </td>
                <td>
                    <div id="chartdiv_pie" align="center">
                        FusionCharts.
                    </div>
                    <script type="text/javascript">
                        pie(0);
                    </script>
                </td>
            </tr>
            <tr>
                <td>
                    <div id="chartdiv_line" align="center">
                        FusionCharts.
                    </div>
                    <script type="text/javascript">
                        line(0);
                    </script>
                </td>
                <td>
                    <div id="chartdiv_col_m" align="center">
                        FusionCharts.
                    </div>
                    <script type="text/javascript">                        month(0);
                    </script>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
